package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.constant.NumConstant;
import com.example.entity.Swiper;
import com.example.mapper.SwiperMapper;
import com.example.service.SwiperService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SwiperServiceImpl implements SwiperService {
    @Resource
    private SwiperMapper swiperMapper;

    @Override
    public List<Swiper> getIndexSwiperList() {
        QueryWrapper<Swiper> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status", NumConstant.SWIPER_ENABLE);
        return swiperMapper.selectList(queryWrapper);
    }
}